package com.qf.service.impl;

import com.qf.mapper.DtsGoodsMapper;
import com.qf.mapper.StatMapper;
import com.qf.service.DtsGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DtsGoodsServiceImpl implements DtsGoodsService {

    @Autowired
    DtsGoodsMapper userMapper;
    @Autowired
    StatMapper statMapper;

    @Override
    public long getTotal() {
        return userMapper.selectCount(null);
    }

    @Override
    public List<Map<String,Object>> queryStatGoods() {
        return statMapper.queryStatGoods();
    }
}
